/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.dao;

import java.io.Serializable;
import java.util.List;
import javax.persistence.EntityManager;
import model.dao.exceptions.NonexistentEntityException;
import model.pojo.Turma;

/**
 *
 * @author Filipe
 */
public interface TurmaInterface extends Serializable {

    void create(Turma turma);

    void destroy(Integer id) throws NonexistentEntityException;

    void edit(Turma turma) throws NonexistentEntityException, Exception;

    Turma findTurma(Integer id);

    List<Turma> findTurmaEntities();

    List<Turma> findTurmaEntities(int maxResults, int firstResult);

    EntityManager getEntityManager();

    int getTurmaCount();
    
}
